<div class="wrap-footer">
    <div class="container footer">
        <div class="menu-nav text-center">
            <volist name="help_list" id="vo" key="k" >
            <if condition="( $k neq 1)"><span class="menu-nav-split"></span></if>
            <a href="{$vo.url}">{$vo.title}</a>
            </volist>
        </div>
        <div class="back-top">
            <img src="/images/home/back_top.png"/>
        </div>
        <div class="copy mb15 text-center">
            &copy;&nbsp;&nbsp;2014 RichZoo. All rights reserved. 沪ICP备14018325号 Copyright 2014 锐祁机构
        </div>
    </div>
</div>
<if condition="empty($user_info['user_name'])">
<!--注册-->
<div class="modal fade" id="reg_dialog" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" id="wrap_reg_dialog">
        <div class="modal-content">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal"onclick="window.location.reload()"><i class="glyphicon glyphicon-remove"></i></button>
            <h1 class="add-header">新用户注册</h1>
            <div class="add-content">
                <div class="add-content-form">
                    <form class="ui-form" id="reg-form" autocomplete="off">

                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">邮箱：</label>
                            <div class="col-sm-4  col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt">
                                    <input type="text" name="email" placeholder="填写电子邮箱">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">手机号：</label>
                            <div class="col-sm-4  col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt">
                                    <input type="text" name="mobile" placeholder="填写手机号">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">密码：</label>
                            <div class="col-sm-4  col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt">
                                    <input type="password" name="password" maxlength="16" placeholder="设置密码">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">确认密码：</label>
                            <div class="col-sm-4  col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt">
                                    <input type="password" name="re_password" maxlength="16" placeholder="输入同一密码">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">用户类型：</label>
                            <div class="form-radio col-sm-7 col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt">
                                        <div class="col-sm-5">
                                            <span id="personal" class="ui-radio selected"><input type="radio" name="user_type" value="0" checked="checked"></span>个人
                                        </div>
                                        <div class="col-sm-5">
                                            <span id="company" class="ui-radio"><input type="radio" name="user_type" value="1"></span>企业
                                        </div>
                                </div>
                            </div>
                            <div class="col-sm-4 col-lg-5 col-xs-offset-2 col-sm-offset-5">
                                <span class="msg-box n-right" style="" for="user_type"><span class="msg-wrap n-error" role="alert"><span class="n-msg">类型注册后不能变更</span></span></span>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">验证码：</label>
                            <div class="col-sm-3 col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt lg-code">
                                    <input type="text" name="code" placeholder="请输入图片中的数字">
                                </div>
                            </div>
                            <div class="col-sm-3 col-xs-offset-2 col-sm-offset-0">
                                <div class="wrap-code">
                                    <div class="pt5 ml5">
                                        <img class="code-img code-reg" src="/index/verify_code"  alt="验证码">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">短信验证码：</label>
                            <div class="col-sm-3 col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt lg-code">
                                    <input type="text" name="auth_code" placeholder="输入收到的验证码">
                                </div>
                            </div>
                            <div class="col-sm-3 col-xs-offset-2 col-sm-offset-0">
                                <a class="ui-btn ui-btn-blue btn-get-code get-code-reg">获取验证码</a>
                            </div>

                        </div>
                        <div class="row">
                            <div class="form-radio col-sm-3 col-lg-5 col-xs-offset-2 col-sm-offset-5">
                                <div class="ipt">
                                        <span class="ui-radio check-agree"></span>
                                        阅读并同意RichZoo众筹<a href="/help/term.html" target="_blank" class="fc-blue">《服务协议》</a>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="register">注册</button>
                    <p class="tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
    </div>
</div>
<!--注册end-->
<!--login s-->
<div class="modal fade" id="login_dialog" tabindex="-1" role="dialog"  data-keyboard="false" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" id="wrap_login_dialog">
        <div class="modal-content" id="login-wrap">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal" id="login-close"><i class="glyphicon glyphicon-remove"></i></button>
            <h1 class="add-header">用户登录</h1>
            <div class="add-content">
                <div class="add-content-form">
                    <form class="ui-form" id="login-form" autocomplete="off">
                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">邮箱：</label>
                            <div class="col-sm-4  col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt">
                                    <input type="text" name="username" id="username" placeholder="邮箱">
                                </div>
                                <div class="pl5 mt5" id="goto-reg" style="color:red;">没有帐号？去注册</div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">登录密码：</label>
                            <div class="col-sm-4  col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt">
                                    <input type="password" name="password" maxlength="16" id="pass" placeholder="输入登录密码">
                                </div>
                                <div class="pl5 mt5" id="link-forget">忘记密码？</div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">验证码：</label>
                            <div class="col-sm-4  col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt lg-code">
                                    <input type="text" name="code" maxlength="4" placeholder="请输入图片中的数字">
                                </div>
                            </div>
                            <div class="col-sm-3 col-xs-offset-2 col-sm-offset-0">
                                <div class="wrap-code">
                                    <div class="pt5 ml5">
                                        <img class="code-img code-login" src="/index/verify_code" alt="验证码">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    <form class="ui-form" id="login-bind-form" autocomplete="off" style="display: none">
                                    <input type="hidden" name="username" id="h-user">
                                    <input type="password" style="display: none" id="h-pass" name="password" maxlength="16" >
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">手机号码：</label>
                            <div class="col-xs-4">
                                <div class="ipt lg-code">
                                    <input type="text" name="mobile" id="phone"  placeholder="输入手机号码">
                                </div>
                            </div>
                            <a class="ui-btn ui-btn-blue btn-get-code get-bind-code">获取验证码</a>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">短信验证码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="code" placeholder="请填写收到验证码">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30 mb30" id="wrap-login">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="login-ajax">登录</button>
                    <p class="login-tips mt10 fc-red f14"></p>
                </div>
                <div class="add-link text-center mt30 mb30" id="wrap-login-bind" style="display: none">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="login-ajax-bind">绑定并登录</button>
                    <p class="login-bind-tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
        <div class="modal-content" id="forget-wrap">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal" onclick="window.location.reload()"><i class="glyphicon glyphicon-remove"></i></button>
            <h1 class="add-header">找回密码</h1>
            <div class="add-content">
                <div class="add-content-form" style="padding: 40px 0 20px 0">
                    <form class="ui-form" id="forget-form" autocomplete="off">
                        <div class="row">
                            <label class="col-sm-3 col-xs-offset-2">注册邮箱：</label>
                            <div class="col-sm-4  col-xs-offset-2 col-sm-offset-0">
                                <div class="ipt">
                                    <input type="text" name="email" placeholder="注册邮箱">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30 mb30">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="lost-ajax">提交</button>
                    <p class="lost-tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
    </div>
</div>
</if>
<!--login e-->
<script type="text/javascript" src="/javascript/home/main.js"></script>
<if condition="($request_login eq 1)">
<script type="text/javascript">
    $('#login_dialog').modal('show');
</script>
</if>
        <script>
            $(function(){
                $("#login-close").on('click',function(){
                    var _url = window.location.href;
                    var _status=_url.indexOf('request_login');
                    if(_status == -1){
                        window.location.reload();
                    }
                });
                $("#personal").on('click',function(){
                    $("#company input[type='radio']").attr('checked',false);
                    $("#personal input[type='radio']").attr('checked',true);
                });
                $("#company").on('click',function(){
                    $("#personal input[type='radio']").attr('checked',false);
                    $("#company input[type='radio']").attr('checked',true);
                });
            })
        </script>
</body>
</html>